const { SyncBailHook } = require('tapable')

let hook = new SyncBailHook(['name', 'age'])

hook.tap('fn1', (name, age) => {
  console.log('fn1--->', name, age)
})

hook.tap('fn2', (name, age) => {
  console.log('fn2--->', name, age)
  return undefined
})

hook.tap('fn3', (name, age) => {
  console.log('fn3--->', name, age)
})
hook.call('lg', 100)
